import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'

// 导入css样式文件
import './assets/css/style.scss'
import './assets/iconfont/iconfont.css'

// swiper
import { swiper, swiperSlide } from "vue-awesome-swiper";
import "swiper/dist/css/swiper.css";
Vue.component('swiper', swiper)
Vue.component('swiperSlide', swiperSlide)

// 导入自定义组件
import Card from './components/Card.vue'
Vue.component('m-card', Card)

import ListCard from './components/ListCard.vue'
Vue.component('m-list-card', ListCard)

Vue.config.productionTip = false

Vue.prototype.$http = axios.create({
  baseURL: process.env.VUE_APP_API_URL || '/web/api',
  // baseURL: 'http://localhost:3000/web/api'
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')



